﻿using System.Configuration;

namespace CID.Execution.Support.PackageHandling.Configuration
{
    public class PackageHandlingSection : ConfigurationSection
    {
        private const string HandlersElement = "handlers";
        public const string SectionName = "packageHandling";

        [ConfigurationProperty(HandlersElement, IsDefaultCollection = false)]
        [ConfigurationCollection(typeof(PackageHandlerElementCollection), AddItemName = "add", ClearItemsName = "clear", RemoveItemName = "remove")]
        public PackageHandlerElementCollection Handlers
        {
            get { return (PackageHandlerElementCollection)this[HandlersElement]; }
        }
    }
}
